package com.zgkxzx.myfix;

import android.app.Application;
import android.os.Build;
import android.os.Environment;


/**
 * 创建者 zgkxzx
 * 日期   1/30/18
 * 描述
 */

public class BaseApplication extends Application {


    private PatchManger patchManager;


    @Override
    public void onCreate() {
        super.onCreate();

        patchManager = new PatchManger(getApplicationContext());
        patchManager.init(Build.VERSION.SDK_INT);//current version

        //MBands/app-new-patch.apatch
        String src = Environment.getExternalStorageDirectory() + "/MaiBuWatch/app-new-patch.apatch";
        patchManager.loadPatch(src);
    }
}
